package com.niiwoo.civet.mobile.vo.request.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Setter
@Getter
@ApiModel
public class UserSMSRequestVO {

    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1[3456789][0-9]{9}$", message = "手机号码错误")
    @ApiModelProperty(value = "登录名", notes = "手机号", required = true)
    private String loginMobileNo;

    @NotNull(message = "业务类型不能为空")
    @ApiModelProperty(
            value = "业务类型(1 注册 2 登录 3 重置登录密码 5 绑定第三方账号 7 更换手机号(旧手机验证) 8 更换手机号(新手机验证)) 9 债权转让短信验证",
            notes = "1 注册 2 登录 3 重置登录密码 5 绑定第三方账号 7 更换手机号(旧手机验证) 8 更换手机号(新手机验证) 9 债权转让短信验证",
            required = true
    )
    private Integer bizType;

}
